<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: connection_widget.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">connection_widget.h</div>  </div>
</div>
<div class="contents">
<a href="connection__widget_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __CONNECTION_WIDGET__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __CONNECTION_WIDGET__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QWidget&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QHBoxLayout&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QPushButton&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;QLineEdit&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;QLabel&gt;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="client__connection_8h.html">client_connection.h</a>&quot;</span>
<a name="l00011"></a>00011 
<a name="l00017"></a><a class="code" href="classCConnectionWidget.html">00017</a> <span class="keyword">class </span><a class="code" href="classCConnectionWidget.html" title="this is the actual control for the stegit-2 control">CConnectionWidget</a> : <span class="keyword">public</span> QWidget
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019          Q_OBJECT
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="keyword">public</span>:
<a name="l00022"></a>00022         <a class="code" href="classCConnectionWidget.html#ad504a0b4d0b6ee5a8a64089fcfdedccb">CConnectionWidget</a>(QWidget* pParent = 0);
<a name="l00023"></a>00023         <span class="keyword">virtual</span> <a class="code" href="classCConnectionWidget.html#a601f5b2d37cdd13afe7e6456168429e2">~CConnectionWidget</a>();
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a64fcb119b7e03105a1d84125ca2a7914">clientConnected</a>(QString&amp; pHost, quint16&amp; pPort);
<a name="l00026"></a>00026         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a7e6ff2158e9f029d70d5a93f02bbc3c1">clientDisconnected</a>();
<a name="l00027"></a>00027         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#ada2d296c44f606be7957e29d301d2862">connectionError</a>();
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="classCConnectionWidget.html#a33e533823dca264aa8bd0bb5ab97b35f">00029</a>         <span class="keyword">static</span> <span class="keyword">const</span> QString <a class="code" href="classCConnectionWidget.html#a33e533823dca264aa8bd0bb5ab97b35f">sDefaultHostname</a>;
<a name="l00030"></a><a class="code" href="classCConnectionWidget.html#afc804f66fe1d2a67af7b443b1eff26c4">00030</a>         <span class="keyword">static</span> <span class="keyword">const</span> QString <a class="code" href="classCConnectionWidget.html#afc804f66fe1d2a67af7b443b1eff26c4">sDefaultPort</a>;
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 signals:
<a name="l00033"></a>00033         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a87d7387ff75301dc4133a72d4d5452c0">connectRequested</a>(QString, quint16);
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a0c3519eb3478371a6c9debdfe33dad95">startRequested</a>();
<a name="l00035"></a>00035         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#ab6db92a5c8f46533d2cbc137bbd17f6e">disconnectRequested</a>();
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">private</span> slots:
<a name="l00038"></a>00038         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a3058f44c1db78221366023164f7fa282">connectClicked</a>();
<a name="l00039"></a>00039         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#acc12e34c8ce6ba5048d979fb01b1a9bb">startClicked</a>();
<a name="l00040"></a>00040         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a9982e76f5433ea6716e971ca47fe4bff">disconnectClicked</a>();
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">private</span>:
<a name="l00043"></a><a class="code" href="classCConnectionWidget.html#af0a4e81883aee6f72ae8290d5fcbd62d">00043</a>         QHBoxLayout <a class="code" href="classCConnectionWidget.html#af0a4e81883aee6f72ae8290d5fcbd62d">mLayout</a>;
<a name="l00044"></a><a class="code" href="classCConnectionWidget.html#a128f2b0d1256a8de21cee2afb395fd72">00044</a>         QPushButton <a class="code" href="classCConnectionWidget.html#a128f2b0d1256a8de21cee2afb395fd72">mConnectButton</a>;
<a name="l00045"></a><a class="code" href="classCConnectionWidget.html#aa8190d43380dd5ab202791be35ac0f35">00045</a>         QPushButton <a class="code" href="classCConnectionWidget.html#aa8190d43380dd5ab202791be35ac0f35">mDisconnectButton</a>;
<a name="l00046"></a><a class="code" href="classCConnectionWidget.html#aa7e2268cfe36f1e871570880938a7613">00046</a>         QLabel <a class="code" href="classCConnectionWidget.html#aa7e2268cfe36f1e871570880938a7613">mHostnameLabel</a>;
<a name="l00047"></a><a class="code" href="classCConnectionWidget.html#a476550a943a060b748520e1f5b259d9b">00047</a>         QLineEdit <a class="code" href="classCConnectionWidget.html#a476550a943a060b748520e1f5b259d9b">mHostnameEdit</a>;
<a name="l00048"></a><a class="code" href="classCConnectionWidget.html#ab6a18f290269aa9e657eb49fef46bc3e">00048</a>         QLabel <a class="code" href="classCConnectionWidget.html#ab6a18f290269aa9e657eb49fef46bc3e">mPortLabel</a>;
<a name="l00049"></a><a class="code" href="classCConnectionWidget.html#adc2faee602ad219c2ba1ffe9e1b56459">00049</a>         QLineEdit <a class="code" href="classCConnectionWidget.html#adc2faee602ad219c2ba1ffe9e1b56459">mPortEdit</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="classCConnectionWidget.html#a9e0f8c32488ce50d142a1375509042af">00051</a>         <a class="code" href="classCClientConnection.html" title="this is the actual model for the stegit-2 control">CClientConnection</a>* <a class="code" href="classCConnectionWidget.html#a9e0f8c32488ce50d142a1375509042af">mClientConnection</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a5e3605feb34e9f8f1c2759402088bce4">setupUiElements</a>();
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="classCConnectionWidget.html#a4f9d3dfa045d10489d3972ae89713e69">setupActions</a>();
<a name="l00055"></a>00055 };
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#endif </span><span class="comment">/* __CONNECTION_WIDGET__ */</span>
<a name="l00058"></a>00058 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
